#ifndef ERRORS_H_
#define ERRORS_H_

#define RESULT_OK 				(0)
#define RESULT_SUCCESS			RESULT_OK
#define RESULT_ERROR			(-1)
#define ERROR_NONE				RESULT_OK
#define ERROR_FAILED			RESULT_ERROR
#define ERROR_NOT_IMPLIMENTED	(-2)
#define ERROR_NOT_SUPPORTED		(-3)
#define ERROR_INVALID_ARGUMENT	(-4)
#define ERROR_INVALID_OPERATION	(-5)
#define ERROR_OUT_OF_MEMORY		(-7)

#define SUCCESS(x)	((x)==RESULT_OK)
#define FAILED(x)	((x)!=RESULT_OK)

#endif /*ERRORS_H_*/
